Skip to content

Replace requirejs with webpack to enable ES6+ and non-AMD modules #366

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Jun 10, 2019

Conversation

therewasaguy
Copy link
Member

  • Build with Webpack instead of requirejs, allowing us to mix AMD with more other/standard module formats (💥 🏅 @oshoham !)
  • add babelify so that we can use ES6+
  • add @for <className> to satisfy the YUIDoc build step in p5.js repo (cc @Spongman, thought you might have insight on this in case there is anything we're missing be9410a )

TO DO (perhaps in a separate PR):

oshoham and others added 3 commits June 9, 2019 14:01
Webpack cant seem to keep track of which method belongs to which class, but YUIDoc gives us a way to do that with the "for" secondary tag
https://yui.github.io/yuidoc/syntax/index.html
@therewasaguy therewasaguy requested a review from oshoham June 9, 2019 19:47
@therewasaguy
Copy link
Member Author

Copy link
Contributor

@oshoham oshoham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great except for the commented-out filter classes!

src/filter.js Outdated
// p5.LowPass = function() {
// p5.Filter.call(this, 'lowpass');
// };
// p5.LowPass.prototype = Object.create(p5.Filter.prototype);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@therewasaguy do we want to leave these classes commented out or do we just need to add @for to the jsdoc comments?

src/filter.js Outdated
// p5.HighPass = function() {
// p5.Filter.call(this, 'highpass');
// };
// p5.HighPass.prototype = Object.create(p5.Filter.prototype);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see above comment re: @for

src/filter.js Outdated
// p5.BandPass = function() {
// p5.Filter.call(this, 'bandpass');
// };
// p5.BandPass.prototype = Object.create(p5.Filter.prototype);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see above comment re: @for

@oshoham oshoham merged commit 7388d2e into master Jun 10, 2019
@oshoham oshoham deleted the webpack-2019 branch June 10, 2019 22:07
@oshoham oshoham restored the webpack-2019 branch June 10, 2019 22:07
@oshoham oshoham deleted the webpack-2019 branch August 24, 2019 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants